home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Controls
/
Visual Basic Controls.iso
/
vbcontrol
/
vidhandl
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1999-02-03
|
2KB
|
44 lines
@echo=off
if not exist %1\bin\tlib.exe goto error
echo Usage: INSTALL (TC/TC++ path)
echo
echo INSTALL.BAT will copy the following files in the following directories:
echo CRT.H to %1\INCLUDE
echo VIDEOHLP.TXT to %1\DOC
echo and will also install VIDEO HANDLING FUNCTIONS in TC RTL libraries at %1\LIB
echo
echo If everything is OK, hit "y" to continue.
echo If the paths above are incorrect or if you wish to make a safe backup
echo of your RTL libraries, hit "n" or "ESC" to exit.
echo For more information read README.1ST.
choice /n /c:yn
if errorlevel 2 goto end
echo Installing functions in RTL libraries in
echo small, medium, compact, large and huge memory models
%1\bin\tlib %1\lib\cs.lib + lib\videos.lib
%1\bin\tlib %1\lib\cm.lib + lib\videom.lib
%1\bin\tlib %1\lib\cc.lib + lib\videoc.lib
%1\bin\tlib %1\lib\cl.lib + lib\videol.lib
%1\bin\tlib %1\lib\ch.lib + lib\videoh.lib
echo Removing unecessary backup files created by TLIB
del %1\lib\cc.bak
del %1\lib\cs.bak
del %1\lib\cm.bak
del %1\lib\cl.bak
del %1\lib\ch.bak
echo Copying header file CRT.H
copy include\crt.h %1\include
echo Copying help file VIDEOHLP.TXT
copy doc\videohlp.txt %1\doc
echo
echo Installation complete. Read README.1ST file for information.
goto end
:error
echo
echo ERROR: %1\BIN\TLIB.EXE not found.
echo This problably has happened because you gave wrong path of TC or because
echo your C/C++ compiler is not Turbo C/C++. (in this case edit this batch file)
echo For more information read README.1ST.
:end
@echo=on